/**
 * @namespace Holds functionality related to networking.
 */
lib.net = {};

/**
 * @name Error enumeration for XHR responses.
 */
lib.net.Error = {
    /** An error occurred evaluating the returned JSON. **/
	EVAL: 1,
	/** An invalid status code was returned by the call. **/
	STATUS: 2
};

/**
 * @name Request method enumeration for HTTP requests.
 */
lib.net.Method = {
	GET: 'GET',
	POST: 'POST'
};

/**
 * @name Ready state enumeration XHR requests.
 */
lib.net.ReadyState = {
	UNSENT: 0,
	OPENED: 1,
	HEADERS_RECEIVED: 2,
	LOADING: 3,
	DONE: 4
};

/**
 * @name Status enumeration for HTTP responses.
 */
lib.net.Status = {
	OK: 200
};
